<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>
      {% block title %}{% endblock %} -汽配商城
    </title>
    <link rel="stylesheet" href="/static/css/base.css" />
    <link rel="stylesheet" href="/static/css/page.css" />
    <!--[if lt IE 9]>
    <script type="text/javascript">
      // html5shiv MIT @rem remysharp.com/html5-enabling-script
      // iepp v1.6.2 MIT @jon_neal iecss.com/print-protector
    /*@cc_on(function(a,b){function r(a){var b=-1;while(++b<f)a.createElement(e[b])}if(!(!window.attachEvent||!b.createStyleSheet||!function(){var a=document.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1}())){a.iepp=a.iepp||{};var c=a.iepp,d=c.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",e=d.split("|"),f=e.length,g=new RegExp("(^|\\s)("+d+")","gi"),h=new RegExp("<(/*)("+d+")","gi"),i=/^\s*[\{\}]\s*$/,j=new RegExp("(^|[^\\n]*?\\s)("+d+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),k=b.createDocumentFragment(),l=b.documentElement,m=l.firstChild,n=b.createElement("body"),o=b.createElement("style"),p=/print|all/,q;c.getCSS=function(a,b){if(a+""===undefined)return"";var d=-1,e=a.length,f,g=[];while(++d<e){f=a[d];if(f.disabled)continue;b=f.media||b,p.test(b)&&g.push(c.getCSS(f.imports,b),f.cssText),b="all"}return g.join("")},c.parseCSS=function(a){var b=[],c;while((c=j.exec(a))!=null)b.push(((i.exec(c[1])?"\n":c[1])+c[2]+c[3]).replace(g,"$1.iepp_$2")+c[4]);return b.join("\n")},c.writeHTML=function(){var a=-1;q=q||b.body;while(++a<f){var c=b.getElementsByTagName(e[a]),d=c.length,g=-1;while(++g<d)c[g].className.indexOf("iepp_")<0&&(c[g].className+=" iepp_"+e[a])}k.appendChild(q),l.appendChild(n),n.className=q.className,n.id=q.id,n.innerHTML=q.innerHTML.replace(h,"<$1font")},c._beforePrint=function(){o.styleSheet.cssText=c.parseCSS(c.getCSS(b.styleSheets,"all")),c.writeHTML()},c.restoreHTML=function(){n.innerHTML="",l.removeChild(n),l.appendChild(q)},c._afterPrint=function(){c.restoreHTML(),o.styleSheet.cssText=""},r(b),r(k);if(c.disablePP)return;m.insertBefore(o,m.firstChild),o.media="print",o.className="iepp-printshim",a.attachEvent("onbeforeprint",c._beforePrint),a.attachEvent("onafterprint",c._afterPrint)}})(this,document)@*/
    </script>
    <!-- [endif]-->
  </head>
  <body>

    <div class="container clearfix">

    {% include 'topbar.html' %}

      <div id="header" class="grid grid-20">
        <div class="logo clearfix grid grid-6 first">
          <h1><a href="/"><img src="/static/img/logo.png" alt="汽配商城" /></a></h1>
          <div class="logo-side">        				
            <a class="logo-side-current" href="{{ store.get_url }}" class="cityName">{{ store.name }}</a> <br />
          </div>
        </div> <!-- .logo -->
        <div class="grid grid-8">
          <form class="form form-search" action="/search" method="get">
            <input class="form-input" placeholder="请输入者关键字" title="请输入关键字" name="q">
            <div class="form-select">
              <span class="form-select-selected">配件</span>
              <ul class="form-select-menu">
                <li data-action="/search" models="test">配件</li>
                <li data-action="/search">商家</li>
                <li data-action="/search">品牌</li>
                <li data-action="/search" models="need.need">需求</li>
              </ul>    
              <input name='models' value="default"  type="hidden" id="models"/>
            </div>
            <input type="submit" class="form-submit button button-grey" value="搜索">
          </form>
        </div>
        <div class="grid grid-6 last">			
          <!-- 保留区域, 留作它用 -->
        </div>
      </div> <!-- #header -->

      {% include "nav.html" %}

      {% block content %}

      {% endblock %}

      <div id="footlinks" class="grid grid-20">
        <table>
          <tbody>
            <tr>
              <th>友情链接</th>
              <td>
                {% for link in links %}
                <a href="{{ link.url }}" target="_blank">{{ link.site }}</a> 
                {% endfor %}
              </td>
            </tr>
            <tr>
              <th>关于我们</th>
              <td>
                <a rel="nofollow" href="#" target="_blank">关于汽配城</a> 
                <a href="" target="_blank">法律声明</a> 
                <a href="" target="_blank">用户协议</a> 
                <a href="" target="_blank">招贤纳士</a> 
                <a href="" target="_blank">官方博客</a> 
                <a href="" target="_blank">商家推广</a> 
              </td>
            </tr>
          </tbody>
        </table>
      </div> <!-- #footlinks -->

      <div id="footer" class="grid grid-20" style="margin-left:0px;">	
        <div class="copyright">
          <small>© 2013 汽配城</small> 客服：(周一至周日9:00-18:00) 
        </div>

        <div class="gov">
          <!-- 保留区域, 留作它用, 页面最底部 -->
        </div>
      </div> <!-- #footer -->

    </div> <!-- .container -->

    <script type="text/javascript" src="/static/js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="/static/js/plugins.js"></script>
    <script type="text/javascript" src="/static/js/page.js"></script>
    <script type="text/javascript" src="/static/js/instant.js"></script>
  </body>
</html>
